'use strict';

const express = require('express');
const OWS = require('../controller/ows');
const LocalInterface = require('./local-interface');

const router = express.Router();

router.get('/', (req, res) => {
  res.send('Welcome to use NCloud Service!')
});

router.use('/interface', LocalInterface);

router.get('/reservation/confirmation-number/:confirmNumber', OWS.fetchBooking);
router.post('/reservation/future-booking-summary', OWS.futureBookingSummary);
router.post('/reservation/assign-room', OWS.assignRoom);
router.post('/reservation/update-name', OWS.updateName);
router.post('/housekeeping/room-status', OWS.fetchHouseKeepingRoomStatus);
router.post('/reservation/make-payment', OWS.makePayment);

module.exports = router;

